package com.hckjsec.oa.domain.OaView;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class CalendarSignView {
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;//日期
    private String info;//说明
    private Long festival;//是否节假日 0-不是节假日 1-节假日
    private CalendarSplitView signIn;//签到
    private CalendarSplitView signOut;//签退

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Long getFestival() {
        return festival;
    }

    public void setFestival(Long festival) {
        this.festival = festival;
    }

    public CalendarSplitView getSignIn() {
        return signIn;
    }

    public void setSignIn(CalendarSplitView signIn) {
        this.signIn = signIn;
    }

    public CalendarSplitView getSignOut() {
        return signOut;
    }

    public void setSignOut(CalendarSplitView signOut) {
        this.signOut = signOut;
    }

    public void  push(){
        if (this.festival == 0){
            if ("0".equals(this.signIn.getState()) && "0".equals(this.signOut.getState())){
                this.info = "正常";
            }
        }
    }
}
